Sorts a range of rows in the sheet according to the specified parameters.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim row As Integer
Dim rowCount As Integer
Dim sortInfo() As SortInfo
Dim value As Boolean
value = instance.SortRows(row, rowCount, sortInfo) |
Parameters
- row
- Starting row index (the start of the range of rows to sort)
- rowCount
- Number of rows in the range to sort
- sortInfo
- Array of SortInfo objects that contain the column indexes and the order of sorting
Return Value
true if successful; otherwise
false
Remarks
Example
This example illustrates the use of this member by sorting the rows with the specified parameters.
C# | Copy Code |
---|
FarPoint.Web.Spread.SheetView sv;
FarPoint.Web.Spread.SortInfo[] s = new FarPoint.Web.Spread.SortInfo[1];
s[0] = new FarPoint.Web.Spread.SortInfo(0, false);
sv = FpSpread1.ActiveSheetView;
sv.SortRows(0, 2, s);
|
Visual Basic | Copy Code |
---|
Dim sv As FarPoint.Web.Spread.SheetView
Dim s(1) As FarPoint.Web.Spread.SortInfo
s(0) = New FarPoint.Web.Spread.SortInfo(0, False)
sv = FpSpread1.ActiveSheetView
sv.SortRows(0, 2, s) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also